
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class SysLicenses extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("sys_licenses", "licenseID", $bReadOnly=false);
	}
	public function getLicenseID()
	{
		return $this->licenseID;

	}
	public function setLicenseID($licenseID)
	{
		$this->licenseID = $licenseID;

	}
	public function getLicenseName()
	{
		return $this->licenseName;

	}
	public function setLicenseName($licenseName)
	{
		$this->licenseName = $licenseName;

	}
	public function getLicenseDuration()
	{
		return $this->licenseDuration;

	}
	public function setLicenseDuration($licenseDuration)
	{
		$this->licenseDuration = $licenseDuration;

	}
	public function getLicenseTerms()
	{
		return $this->licenseTerms;

	}
	public function setLicenseTerms($licenseTerms)
	{
		$this->licenseTerms = $licenseTerms;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"licenseID" => $this->licenseID,
				"licenseName" => $this->licenseName,
				"licenseDuration" => $this->licenseDuration,
				"licenseTerms" => $this->licenseTerms
			)
		);

	}

	private $licenseID;
	private $licenseName;
	private $licenseDuration;
	private $licenseTerms;
}
?>
